﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace LS.Models {
    public class LSDbContext : DbContext
    {
        public LSDbContext()
            : base("DefaultConnection")
        {
            if (!this.Database.Exists()) 
            {
                this.Database.CreateIfNotExists();
            }
        }
        public DbSet<MemberCard> MemberCards { get; set; }

        public DbSet<Card> Cards { get; set; }

        public DbSet<Member> Members { get; set; }

        public DbSet<LostFoundHistory> LostFoundHistories { get; set; }

        public DbSet<UserProfile> UserProfiles { get; set; }
    }
}